using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Xml.Serialization;

namespace Krile.Data
{
    public class SXColor : Krile.Imported.Data.XColor
    {
        [XmlAttribute("Enabled")]
        public bool Enabled = true;

        public SXColor() : base() { }

        public SXColor(Color c)
            : base(c) { }

        public SXColor(Color c, bool enabled)
            : base(c)
        {
            Enabled = enabled;
        }
    }

    public class SXPairColor : Krile.Imported.Data.XPairColor
    {
        [XmlAttribute("EnabledF")]
        public bool ForeEnabled = true;

        [XmlAttribute("EnabledB")]
        public bool BackEnabled = true;
        public SXPairColor() : base() { }

        public SXPairColor(Color fore, Color back)
            : base(fore, back) { }

        public SXPairColor(Color fore, Color back, bool foreenabled, bool backenabled)
            : this(fore, back)
        {
            ForeEnabled = foreenabled;
            BackEnabled = backenabled;
        }
    }
}